home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / RTCPlugin.a < prev    next >
Text File  |  1996-05-01  |  3KB  |  117 lines

  1. ;
  2. ;    File:        RTCPlugin.a
  3. ;
  4. ;    Contains:    System interface for RTC plugins
  5. ;
  6. ;    Version:    Technology:    System 8
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__RTCPLUGIN__') = 'UNDEFINED' THEN
  19. __RTCPLUGIN__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF FOR_SYSTEM8_PREEMPTIVE THEN
  25.     IF &TYPE('__TIMING__') = 'UNDEFINED' THEN
  26.     include 'Timing.a'
  27.     ENDIF
  28.     ENDIF
  29.     IF FOR_SYSTEM8_PREEMPTIVE THEN
  30. ;
  31. ;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  32. ;    status codes
  33. ;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  34. ;
  35.  
  36. kRTCPluginVersionOne            EQU        $01
  37. kRTCPluginCurrentVersion        EQU        $01
  38.  
  39. kRTCNoError                        EQU        0
  40. kRTCTimeout                        EQU        1
  41. kRTCUnexpectedError                EQU        2
  42. kRTCMemoryError                    EQU        3
  43. kRTCParameterError                EQU        4
  44. kRTCDeviceError                    EQU        5
  45. kRTCUnexpectedDeviceRequest        EQU        6
  46. kRTCControllerError                EQU        7
  47. kRTCConsistencyCheckError        EQU        8
  48. ;
  49. ;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  50. ;    Plugin Calls Provided by the Plugin
  51. ;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  52. ; All plugin calls are async.
  53. ; The plugin starts the i/o and returns immediately.
  54. ; The plugin ISR calls RTCFamRequestComplete() when
  55. ; the i/o is completed (see below).
  56. ;
  57. RTCPluginDispatchTable    RECORD 0
  58. version                     ds.l    1                ; offset: $0 (0)
  59. reserved                 ds.l    3                ; offset: $4 (4)
  60. Verify                     ds.l    1                ; offset: $10 (16)
  61. Init                     ds.l    1                ; offset: $14 (20)
  62. Term                     ds.l    1                ; offset: $18 (24)
  63. Read                     ds.l    1                ; offset: $1C (28)
  64. Write                     ds.l    1                ; offset: $20 (32)
  65. sizeof                     EQU *                    ; size:   $24 (36)
  66.                         ENDR
  67. ;
  68. ; extern OSStatus RTCPluginHWVerify(void )
  69. ;
  70.     IF GENERATINGCFM THEN
  71.         IMPORT_CFM_FUNCTION RTCPluginHWVerify
  72.     ENDIF
  73.  
  74. ;
  75. ; extern OSStatus RTCPluginInit(void )
  76. ;
  77.     IF GENERATINGCFM THEN
  78.         IMPORT_CFM_FUNCTION RTCPluginInit
  79.     ENDIF
  80.  
  81. ;
  82. ; extern OSStatus RTCPluginTerm(void )
  83. ;
  84.     IF GENERATINGCFM THEN
  85.         IMPORT_CFM_FUNCTION RTCPluginTerm
  86.     ENDIF
  87.  
  88. ;
  89. ; extern OSStatus RTCPluginSet(Nanoseconds newTime)
  90. ;
  91.     IF GENERATINGCFM THEN
  92.         IMPORT_CFM_FUNCTION RTCPluginSet
  93.     ENDIF
  94.  
  95. ;
  96. ; extern OSStatus RTCPluginGet(Nanoseconds *currentTime)
  97. ;
  98.     IF GENERATINGCFM THEN
  99.         IMPORT_CFM_FUNCTION RTCPluginGet
  100.     ENDIF
  101.  
  102. ;
  103. ;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  104. ;    Plugin Calls Provided by the Family
  105. ;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  106. ;
  107. ;
  108. ; extern void RTCFamRequestComplete(OSStatus status)
  109. ;
  110.     IF GENERATINGCFM THEN
  111.         IMPORT_CFM_FUNCTION RTCFamRequestComplete
  112.     ENDIF
  113.  
  114.     ENDIF
  115.     ENDIF ; __RTCPLUGIN__ 
  116.  
  117.